package com.sjft.cloud.extension.generate.constant;

import com.baomidou.mybatisplus.generator.config.ConstVal;

/**
 * 常量扩展
 *
 * @author Jin
 */
public interface CustomConstVal extends ConstVal {

    String DO = "DO";
    String INPUT_DTO = "%sInputDTO";
    String UPDATE_DTO = "%sUpdateDTO";
    String QUERY_DTO = "%sQueryDTO";
    String VO = "VO";
    String WRAPPER = "Wrapper";
    String FEIGN = "Remote%sService";
    String FEIGN_FALLBACK = "Remote%sServiceFallBack";

    String DTO_PATH = "DTO_PATH";
    String VO_PATH = "VO_PATH";
    String WRAPPER_PATH = "WRAPPER_PATH";

    String FEIGN_PATH = "FEIGN_PATH";
    String FEIGN_FALLBACK_PATH = "FEIGN_FALLBACK_PATH";

    //前端文件后缀
    String JS_SUFFIX = ".js";
    String VUE_SUFFIX = ".vue";

    //后端Java文件模板
    String TEMPLATE_INPUT_DTO = "/templates/inputDTO.java";
    String TEMPLATE_UPDATE_DTO = "/templates/updateDTO.java";
    String TEMPLATE_QUERY_DTO = "/templates/queryDTO.java";
    String TEMPLATE_VO = "/templates/vo.java";
    String TEMPLATE_WRAPPER = "/templates/wrapper.java";

    String TEMPLATE_FEIGN = "/templates/feign.java";
    String TEMPLATE_FEIGN_FALLBACK = "/templates/feignFallback.java";


    //前端UI模板
    String TEMPLATE_UI_API = "/templates/api.js";
    String TEMPLATE_UI_ROUTER = "/templates/router.js";
    String TEMPLATE_UI_VIEW = "/templates/view.vue";

    //Pom
    String TEMPLATE_API_POM = "/templates/api.pom";
    String TEMPLATE_APP_POM = "/templates/app.pom";

    //other
    String TEMPLATE_APPLICATION_PROPERTIES = "/templates/application.properties";
    String TEMPLATES_BOOTSTRAP_PROPERTIES = "/templates/bootstrap.properties";
    String TEMPLATES_SPRING_FACTORIES = "/templates/spring.factories";
    String TEMPLATE_APPLICATION_JAVA = "/templates/application.java";

}
